<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<title>My App</title>
		<!-- built style files will be auto injected -->
	</head>

	<body>
		<div id="app"></div>
		<!-- built script files will be auto injected -->
	</body>

	<script type="text/javascript" src="static/js/base64.js"></script>
	<script type="text/javascript" src="static/js/jsbn.js"></script>
	<script type="text/javascript" src="static/js/prng4.js"></script>
	<script type="text/javascript" src="static/js/rng.js"></script>
	<script type="text/javascript" src="static/js/rsa.js"></script>
	<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
	<script src="http://weixin.gdncpjg.cn/r/cms/www/default/nw/js/imgInfo.js"></script>
	<script>
		window.onload = function() {
			document.addEventListener("deviceready", onDeviceReady, false);
		}

		function onDeviceReady() {
			document.addEventListener("backbutton", onBackKeyDown, false);
//			StatusBar.styleLightContent();
		}

		function onBackKeyDown() {
			var currentView = f7.getCurrentView();
			if(currentView.history.length > 1) {
				f7.hidePreloader();
//				if(!app.$store.state.Save){
//					f7.confirm('您还没有暂存，确定直接退出或者取消进行暂存。','', function () {
//				      	app.$store.commit("isSave",true);
//				    	currentView.router.back();
//				    }); 
//				} else {
//					currentView.router.back(); //返回上一级 
//				}
				if(app.$store.state.FillObj != null){
					app.$store.state.FillObj.back();
				} else {
					currentView.router.back();
				}
			} else {
				f7.confirm('', '是否退出APP',
				    function () {
				    	navigator.app.exitApp(); //首页点返回键退出 
				    }
			  	);
			}
		}
	</script>

</html>